namespace Backoffice.Domain.Entities.App
{
    /// <summary>
    /// 系统日志实体
    /// </summary>
    public class AppSystem : EntityBase
    {
        public string Name { get; private set; }
        public string Value { get; private set; }
        public string? Description { get; private set; }
        public string Type { get; private set; }

        public AppSystem(string name, string value, string? description = null, string type = "System")
        {
            Name = name;
            Value = value;
            Description = description;
            Type = type;
            CreatedAt = DateTime.UtcNow;
            UpdatedAt = DateTime.UtcNow;
            CreateBy = "system";
            UpdateBy = "system";
        }

        public void UpdateValue(string value)
        {
            Value = value;
        }

        public void UpdateDescription(string? description)
        {
            Description = description;
        }
    }
} 